package com.guguskins.back.mapper;

import com.guguskins.back.entity.GuRoll;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-06-04
 */
@Repository
public interface GuRollMapper extends BaseMapper<GuRoll> {

    List<GuRoll> getPageData(@Param("index") int index, @Param("size") int size, @Param("userId") Long userId, @Param("state") int state);

    long getCount(@Param("userId") Long userId, @Param("state") int state);

    GuRoll getDetail(@Param("rollId") long rollId);

}
